/**
 * Created by sunhao on 2016/4/18.
 */

$(document).ready(function () {
    //无缝滚动LOGOS
    $(function () {
        $(".logos-list,.logos-detail").slide({
            mainCell: ".logos-in ul",
            autoPlay: true,
            effect: "leftMarquee",
            vis: 6,
            interTime: 15,
            trigger: "click"
        });
        $(".logos").slide({
            mainCell: ".logos-in ul",
            autoPlay: true,
            effect: "leftMarquee",
            vis: 4,
            interTime: 15,
            trigger: "click"
        });
    })

    var pathName = window.location.pathname;
    var list = $('.mainNavList ul:first-child > a')
    for (var i = 0; i < list.length; i++) {
        var href = $(list[i]).attr("href")
        if (href == pathName && $(list[i]).has("li").length > 0) {
            $(list[i]).children("li").children("div").addClass("li-btn-check")
        }
    }

});